<?php include "coresection/connection.php";?>
<?php include "coresection/checkSession.php";?>
<?php include "coresection/search-order-status-list.php";?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>邮政点餐系统</title>  
 
	
<style>
 ol {margin:1px;font-size:25px; padding:15px;} 
ol li{ border:solid 1px #cccccc;float:left;list-style-position:inside; width:160px}
.used{ background-color:#666666; color:#ffffff}
.take_away{ color:#00b700; }
.infos{ width:100%;font-size:22px; clear:both; padding:0; }
.infos h1{  text-align:center; font-size:30px; border-bottom:solid 1px #cccccc;    padding: 0px;
    margin: 0px 0px 25px 0px;
    line-height: 47px;}
</style>

</head>

<body style="margin:0px">

<div class="infos">
<h1>就餐详情</h1>
 <span style="float:left; margin-left:35px;">当前时间:
 <? 
 if($admin_ats=='1'){echo "早餐";}
 elseif($admin_ats=='2'){echo "午餐";} 
 else{echo "晚餐";} 
 ?></span>
 <span style="float:left; margin-left:55px; border:solid 1px #666666">未就餐人数:<? echo $order_sum-$order_sum_ed?></span>
 <span style="float:left; margin-left:55px;background-color:#060;color:#ffffff">网点就餐人数:<? echo $take_away_num ?></span>
 <span style="float:left; margin-left:55px;background-color:#666666; color:#ffffff">已就餐人数:<? echo $order_sum_ed ?></span>
 <span style="float:left; margin-left:55px;">总就餐人数:<? echo $order_sum ?></span>
<div>
<br/>
<ol>
<? for($_i=0;$_i<count($search_user_name);$_i++) {
$status="";
if
( 
($search_user_department[$_i]=="河南营业处")||
($search_user_department[$_i]=="小岛营业处")||
($search_user_department[$_i]=="恩州营业处")||
($search_user_department[$_i]=="腾飞营业处")||
($search_user_department[$_i]=="平石营业处")||
($search_user_department[$_i]=="振兴营业处")||
($search_user_department[$_i]=="合规替班组")
)
{$status="take_away";}

//外带的客户也有在饭堂就餐的可能,所以就餐和没就餐的，需要单独再写
if($search_status[$_i]==0)
{$status=$status." notused";}
else
{
$status=$status." used";
}
	 
?>
 
 <li class="<? echo $status ?>"><? echo $search_user_name[$_i] ?></li>
 <?;} ?>
 </ol>
 

</body>
</html>
